package exo1;

/**
 * Created with IntelliJ IDEA.
 * User: naberrad
 * Date: 04/10/13
 * Time: 17:33
 * To change this template use File | Settings | File Templates.
 */
public abstract class Shape2D extends Shape implements Translatable2D {


    private Point2D refPoint;
    public abstract double perimeter();

    public void translate(double x, double y) {
        refPoint.setX(refPoint.getX()+x);
        refPoint.setY(refPoint.getY()+y);

    }

    @Override
    public Point2D getRefPoint() {
        return refPoint;
    }
}
